package com.example.invoice_contrast.service.impl;

import com.example.invoice_contrast.bean.Invoice;
import com.example.invoice_contrast.mapper.ProblemInvoiceMapper;
import com.example.invoice_contrast.service.ProblemInvoiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;

@Service
public class ProblemInvoiceServiceImpl implements ProblemInvoiceService {

    @Autowired
    private ProblemInvoiceMapper problemInvoiceMapper;

    @Override
    public void deleteInvoice(String date) throws IOException {
        problemInvoiceMapper.deleteProblemInvoice(date);
    }

    @Override
    public void insertInvoice(Invoice invoice) throws IOException {
        problemInvoiceMapper.insertProblemInvoice(invoice);
    }

}
